﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="EditForum.aspx.cs" Inherits="Manage_EditForum" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <%if (!Page.User.Identity.IsAuthenticated)
      {
          Response.Redirect("~/Manage/Default.aspx");
      }
    %>
    <style type="text/css">
        table tr
        {
            height: 35px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:Literal ID="ErrorText" runat="server"></asp:Literal>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="ForumValidationGroup" CssClass="failureNotification"/>
    <asp:HiddenField ID="IDText" runat="server" />
    <table width="100%">
        <tr>
            <td style="width:150px;text-align:right">栏目名称：</td>
            <td><asp:TextBox ID="NameText" runat="server" Width="300px" /><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入栏目名称。" Text="*" ToolTip="请输入栏目名称。" ControlToValidate="NameText" CssClass="failureNotification"></asp:RequiredFieldValidator></td>
        </tr>
         <tr>
            <td style="text-align:right">栏目描述：</td>
            <td><asp:TextBox ID="DescriptionText" runat="server" Width="300px" 
                    Rows="10" TextMode="MultiLine"/></td>
        </tr>
        <tr>
            <td style="text-align:right">父栏目：</td>
            <td><asp:DropDownList ID="ForumList" runat="server" /></td>
        </tr>
        <tr>
            <td colspan="2" style="text-align:center"><asp:Button ID="SaveButton" 
                    runat="server" Text="保存" onclick="SaveButton_Click" /></td>
        </tr>
    </table>
</asp:Content>

